created sql related interfaces and mysql queries Fixes #10