Remove insecure and do database work on the server