Added code to get_src_db to work correctly with new orm