Finalize the way to setup the database