Cleaned trash from code
Refactored db service
Refactored ajax-query for puctures