taking link out of activation flash message
avoiding blank arguments in pg sql queries