- Changed all static functions in sql.h, to inline.
- added support for setting the "application_name" setting in the database, in faocas app.