! db extension error check used wrong var db should be database
! remove a few more inline styles

Signed-off-by: Spuds <spuds@spudsdesign.com>