Added code to query data from mysql table & such