creating the database engine