Almost working database integration
DB working now :D :D