define basic tables in database