fix db connection and schema
db