Fix database access layer promisify