Fn: Integrated data from mysql database.