move scandb.py back to main lib directory