add create method and database class