configuring properly the db