db creator class written