Fixed the background CSS; Added database error handling; Defaulted to submit page for invalid actions