* Factored out prompt.js
* Removed extra blank space for when there are no rows in resultset