SQL implementation of deploy repository