add cost page and modify the index.php to initial the database and table
add query and update operator for cost setting