code for online database is working
merged everything
works with database