Upgraded backend queries

Reverted back to Bachelor (instead of Bachelorette).
Added some comments
Added promises
Added auto table creation