Fixed bug that crashed program on empty database returns. Cleaned up page lines.