implement income tests, remove sqlite, change datetime to date