Template added and database works with POST and GET