Added buttons for draft. Also changed name sql-query which is used for insertupdate and delete