admin system implemented and reusable prepared stmt function added to controller