Implimented prepared statements