delete table from postgresql then fill it