adjusted css for mobile and began error checking for database errors