possibility to query database asynchronous with callback