Add get_{table,column}_names to database.py