Move code to Db class + include file to initialize db.