implement database connection, and build load post's from sql querry..

this could save a lot of work and make program more customizable to users needs