Make redbean support existing databases.
For this to work we need custom id fieldnamess and custom foreign key fieldnames.
I have started an github project https://github.com/freelanceniek/redbeanx
and would like some funding to finish it!