putting in auto create db logic, adding created_at timestamp