Creating databases tables and indexes