Database done

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