mod - try to merge the application and mysql layer