changed to postgresql and added foundation gems