change the position of the function $.ans.getDB to keep the request asynchronous