Clean up Util.cs a bit, split off Sqlite stuff into own file.