grabbing table from databse