Final bug fixes and fixed database interaction for play app