Fixing bug where db.First doesn't get the correct id?

Closes #56