query to create fara tables