implemented db creation