Fixed profit calculation screen, added database tests
Removed weird error messages