changed results to post, database workes