Don't blow up if OSX database is missing data table

Fixes https://github.com/chrishunt/desktop/issues/6
cc @xavriley

This pulls `OSX::Database` into its own thing and adds tests. The fix is in https://github.com/chrishunt/desktop/commit/d2957c0592c511e90fa8a72e593362a086738df4.