server side code included

added db support..