setup database, add gems