Function page_db Fixed in the testing file called tk.sh