Major features of interface and database insertion working

There are still some design, error handling and data manipulation things to work on tomorrow, but this should allow you to enter devices and motors into the database and see if they're active.