Updated def get_dbid:

Removed caching and improved overall response time.