Sync on selectDB, return null if not async