Database work done. Except for adding new gps.

Signed-off-by: bazookan <aby.vinod@gmail.com>