database and relevant tables have been established