implemented database writemovie

also restructed how the databaseinterface gets connected; now just doing
one establishconnection for each databaseinterface object (as created by
a new client connection)

cleaned up some of the if(replyFn) checks because we want the app to
crash if the developer is not including a reply function for these
calls; the methods should not be called without