Remove newline to make code cleaner
Fix typo on the SQL statement for api_nodes.version
Move support for muliple queries to the database.js functions