improve interfaces
add mysql connection
cleanup