Added backend configuration and created necessary queries