getting values from mysql database
getting stats for front page