Changed some function names, and url for POST request to the database. setBlocked is also doing a query for seleting elements and returns them to the client