implemented mysql data storage, renamed "permission" to "access"