integrate functions as MYSQLi Querys