Complete database setup