New database structure

Updated sql file with new structure.

Also removed console.log from code.