Added database init
Better handling of database checking
Database inits
Database inits