Small style update
Updated DB functions
?> is not required (Drupal standard is not to use it at all - code minimization)
moved out magic quote overwrite
moved out magic quote overwrite
Updated style
Returned back (again) default config