Open function now working

@Wes - delete the dbmain and am using DBProject as the main file now
since I set this up as a Visual Studio project