new version with mysql db to store messages

new version with mysql db on backend, also moved few directories for
simpler use