sql queries generated for filling costs tab;e