Taped some ducts in order to prevent exceptions during login
surrouned potentially exception-y db queries