implement database creation