changed registration function so it writes in database
Merge pull request #21 from mustbeuw/master

Registering configuration in Database