Updated database

Changed the name of the table inside the function that uses manual
select statements