reactored existing end points; created entityDAOs for entities querying; added user photo endpoint