Typos

Misc db-related bugs

Signed-off-by: Ram Ram <ramon@www.com.mx>