Split the database functions into their own file gssql.pm, so that GreenstoneSQLPlugin can share some db releated code used by GreenstoneSQLPlugout.