ANSI C cgi REST services for database access