Mysql methods.