Locationlog database schema kind of messed up