working db creation