Changed db creation