Seting up the database