dbSchema function

Check and create schema.