Add librt to linked libraries for timer support
Add testroutine for star identification
Read in the raw-files correctly
Load database into memory and fix memory leak

Memory leak was caused by not destroying the sqlite_stmt objects with
sqlite3_finalize()