changing the db creation query