Update Database class

Connection function updated, pgsql en oci support.