database gem problem fixed