I think first off, you need to figure out your database platform first (MySQL, Oracle, etc, etc). The drivers/syntaxes are different for each.