Connection with mysql database. Registration and login communicating
with database