Refactoring for fillup insertion into database using the content provider

The project does not crash now