async database client based on libapi