Code cleanup
Added some null pointer checks
Changed project's framework to .NET 4.5
SQLite dlls exchanged for ones built for .NET 4.5