changed database schema, added basic invoice view